<?php
// +----------------------------------------------------------------------
// | Author: wyd 2025/10/18
// | DESC: 
// +----------------------------------------------------------------------

declare (strict_types=1);

//省略return;
$add = fn($a, $b) => $a + $b;
var_dump($add(1,2));   //输出3


$c = 3;
$test =fn($a)=>$a+ $c;
var_dump($test(1));   //输出4